import { Space } from 'antd';
import Search from './components/Search';
import CityTable from './components/Table';
import AddModal from './components/AddModal';

/*
  城市接口
  url: http://pudge.wang:3000/api/cities/list
  method: GET
  meparms: 无
*/

/*
  表格接口
  url: http://pudge.wang:3000/api/cities/manage/list
  method: POST
  data: {
    page_size?: 10,
    current_page?: 1,
    city?: string,
    useCar?: string,
    operating?: string,
  }
*/

/*
  添加接口
  url: http://pudge.wang:3000/api/cities/manage/add
  method: POST
  data: {
    admin: "志sang"
    city: "深圳"
    handleTime: 1657157583248
    openTime: 1656898378356
    operating: "2"
    useCar: "1"
  }
*/

const Index = () => {
  return (
    <Space direction="vertical" style={{ display: 'flex' }}>
      <Search />
      <CityTable />
      <AddModal />
    </Space>
  );
};

export default Index;
